//
//  Primer_Namespace_DemoVC.swift
//  APSwift
//
//  Created by jianbo.pei on 2022/5/9.
//

import UIKit
import ABSwift
import ACSwift
import SnapKit


class MyClass {
    class func hello() {
        print("hello from MyClass of APSwift")
    }
}


class Primer_Namespace_DemoVC: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        test3()
        
        let str = "abnerpei"
        str.count
    }
    
}

extension Primer_Namespace_DemoVC {
    private func test2() {
        MyClass.hello()
        ABSwift.MyClass.hello()
        ACSwift.MyClass.hello()
    }
}

extension Primer_Namespace_DemoVC {
   private func test1() {
        let vcName = "Primer_Namespace_DemoVC"
        if let vc = vcName.toVC() {
            print("恭喜你，成功了：\(vc)")
        } else {
            print("真遗憾，失败了！")
        }
    }
}

class UISlider {
    
}

extension Primer_Namespace_DemoVC {
   private func test3() {
       let s1 = UISlider()
       let s2 = UIKit.UISlider()
       print("s1 is \(s1)")
       print("s2 is \(s2)")
    }
}


